﻿using System;
using Bookvar.ObjectModel;

namespace Bookvar.Collaboration
{
    public class CollaborationUserMessageEventArgs : CollaborationUserEventArgs
    {
        private string message;

        public CollaborationUserMessageEventArgs(CollaborationUser user, string message)
            : base(user)
        {
            if(message == null)
            {
                throw new ArgumentNullException("message");    
            }

            this.message = message;
        }

        public string Message
        {
            get { return message; }
            set { message = value; }
        }
    }
}